getDevice

abstract fun getDevice(): Device

Retrieves detailed information about the physical device and the RevelDigital player application instance currently running.

This method returns a Device object, which encapsulates various hardware and software attributes specific to this player. This can include, but is not limited to, device model, operating system version, screen dimensions, network configuration (like IP or MAC addresses), and potentially application-specific details such as the user-facing version name.

Use this method when you need to:

  • Adapt behavior or content based on specific device characteristics (e.g., screen size).
  • Log detailed diagnostic information about the player environment.
  • Display device-specific information within the player UI.
  • Correlate player activity with specific hardware for analytics.

The exact set of information available through the Device object is defined by the Device interface itself. Refer to its documentation for details on available properties.

Return

A non-null Device object containing information about the current device and player application instance.

See also

// Crucial: Assumes a Device interface/class exists and is documented

For retrieving the unique RevelDigital device identifier.

For retrieving the application's programmatic version code.